#include "UserAcceptor.h"
#include "TestServer.h"

UserAcceptor::UserAcceptor(const char *addr,int32 port)
:Acceptor(addr,port),socket_list(new UserSocket[MAX_USER]),
begin(socket_list), end(socket_list + MAX_USER),
socket(begin)
{
  
  
}
UserAcceptor::~UserAcceptor()
{
  
}

void UserAcceptor::OnAccept(Socket *socket)
{

	server->AddSocket(socket);
}
	 
